﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Square:Shape
    {
        private int a;

        public Square(int a)
        {
            this.A = a;
        }

        public int A { get => a; set => a = value; }

        public override void GetArea()
        {
            int Area = 0;
            Area = A * A;
            Console.WriteLine("圆的面积" + Area);

        }

    }
}
